home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Far pointers on BorlandC++
- Date: Thu, 29 Feb 96 17:25:39 GMT
- Organization: none
- Message-ID: <825614739snz@genesis.demon.co.uk>
- References: <4h4m5o$fmo@ci.ist.utl.pt>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4h4m5o$fmo@ci.ist.utl.pt>
- l42571@alfa.ist.utl.pt "PEDRO NUNO RODRIGUES DA FONSECA" writes:
-
- >
- >
- > I would like to know tips for optimizing the use of
- >"far" pointers on Borland C++
-
- "far" has no relevance to the C language - a good place to discuss it
- would be comp.os.msdos.programmer.
-
- >and avoiding pROBlems such as
- >corrupting system files.
-
- Don't write code that writes to system files! :-)
-
- You probably mean how to avoid scrapping parts of the OS in an unprotected
- environment which basically boils down to writing 'correct' programs. Most
- destructive behaviour results from the misuse of pointers e.g. using the
- values of uninitialised pointers, exceeding array bounds, bad casting,
- passing bad pointers to free (or realloc for that matter), dereferencing
- or performing pointer arithmetic on null pointers.
-
- >I would also like to know if there
- >is any remote way in wich I can allocate more than 1Mbyte of
- >memory.Everyone I know told me it is impossible but I found
- >it hard to believe that any decent compiler had such a severe
- >restraint.
-
- This is entirely a DOS issue so ask it in comp.os.msdos.programmer. The
- limitation is an archetectural one stemming from the original IBM PC. You
- can get around it but not using anything that is relevant to the C language
- itself.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-